package com.zm.demo.spring.tx.main;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@MapperScan("com.zm.demo.spring.tx.mapper")
@ComponentScan(basePackages = {"com.zm.demo.spring.tx"})
//@ImportResource("classpath:spring/db.xml")
@RestController
public class SpringTXApplication {

    public static void main(String[]args){
        SpringApplication.run(SpringTXApplication.class, args);
    }

    @RequestMapping("/health")
    public String health(){
        return "ok";
    }
}
